<!DOCTYPE html>
<html lang="en">

<head>
  @@include('./meta.html',{})
</head>

<body class="app-component">
  @@include('./header.html',{
  "components": "active"
  })
  <div class="component-wrapper">
    <div class="component-navleft">
      @@include('./navleft.html',{
      "tab_form": "active"
      })
    </div><!-- component-navleft -->

    <div class="component-sidebar">
      @@include('./sidebar.html',{
      "tab_form": "active",
      "form_layouts": "active",
      "urlPrefix": "."
      })
    </div><!-- component-sidebar -->

      <div class="component-content">
        <div class="component-content-header">
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb breadcrumb-style1 mg-b-0">
              <li class="breadcrumb-item"><a href="#">Components</a></li>
              <li class="breadcrumb-item"><a href="#">Forms</a></li>
              <li class="breadcrumb-item active" aria-current="page">Form Layouts</li>
            </ol>
          </nav>
          <a href="javascript:;" id="componentOptions" class="text-secondary mg-l-auto d-xl-none"><i data-feather="more-horizontal"></i></a>
        </div><!-- component-content-header -->

        <div class="component-content-body" data-spy="scroll" data-target="#navSection" data-offset="120">
          <div class="content content-components">
            <div class="container">
              <!--sd-->
              <h1 class="td-title">Form Layouts</h1>
        <p class="td-lead">Use custom form layout styles that can be added to element like cards, modals, sidebars or any other elements. Additional utilities classes can be used to vary this layout.</p>

        <hr class="mg-y-40">

        <h4 id="section1" class="mg-b-10">Form Group</h4>
        <p class="mg-b-30">A form with a label on top of each form control.</p>

        <div data-label="Example" class="td-example demo-forms">
          <form>
            <div class="form-group">
              <label class="d-block">Firstname</label>
              <input type="text" class="form-control" placeholder="Enter your firstname">
            </div>
            <div class="form-group">
              <label class="d-block">Lastname</label>
              <input type="text" class="form-control" placeholder="Enter your lastname">
            </div>
            <button class="btn btn-primary" type="submit">Submit</button>
            <button class="btn btn-secondary" type="reset">Cancel</button>
          </form>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;form&gt;
  &lt;div class=&quot;form-group&quot;&gt;
    &lt;label for=&quot;formGroupExampleInput&quot; class=&quot;d-block&quot;&gt;Firstname&lt;/label&gt;
    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Enter your firstname&quot;&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group&quot;&gt;
    &lt;label for=&quot;formGroupExampleInput2&quot; class=&quot;d-block&quot;&gt;Lastname&lt;/label&gt;
    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Enter your lastname&quot;&gt;
  &lt;/div&gt;
  &lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;Submit&lt;/button&gt;
  &lt;button class=&quot;btn btn-secondary&quot; type=&quot;cancel&quot;&gt;Cancel&lt;/button&gt;
&lt;/form&gt;</code></pre>


        <hr class="mg-t-50 mg-b-40">

        <h4 id="section2" class="mg-b-10">Fieldset</h4>
        <p class="mg-b-30">Group related elements in a form with a legend.</p>

        <div data-label="Example" class="td-example demo-forms">
          <fieldset class="form-fieldset">
            <legend>Personal Information</legend>
            <div class="form-group">
              <label class="d-block">Firstname</label>
              <input type="text" class="form-control" placeholder="Enter your firstname">
            </div>
            <div class="form-group">
              <label class="d-block">Lastname</label>
              <input type="text" class="form-control" placeholder="Enter your lastname">
            </div>
          </fieldset>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;fieldset class=&quot;form-fieldset&quot;&gt;
  &lt;legend&gt;Personal Information&lt;/legend&gt;
  &lt;div class=&quot;form-group&quot;&gt;
    &lt;label class=&quot;d-block&quot;&gt;Firstname&lt;/label&gt;
    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Enter your firstname&quot;&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group&quot;&gt;
    &lt;label class=&quot;d-block&quot;&gt;Lastname&lt;/label&gt;
    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Enter your lastname&quot;&gt;
  &lt;/div&gt;
&lt;/fieldset&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section3" class="mg-b-10">Form Grid</h4>
        <p class="mg-b-30">More complex forms can be built using our grid classes. Use these for form layouts that require multiple columns, varied widths, and additional alignment options.</p>

        <div data-label="Example" class="td-example demo-forms">
          <form>
            <div class="form-row">
              <div class="form-group col-md-6">
                <label for="inputEmail4">Email</label>
                <input type="email" class="form-control" id="inputEmail4" placeholder="Email">
              </div>
              <div class="form-group col-md-6">
                <label for="inputPassword4">Password</label>
                <input type="password" class="form-control" id="inputPassword4" placeholder="Password">
              </div>
            </div>
            <div class="form-group">
              <label for="inputAddress">Address</label>
              <input type="text" class="form-control" id="inputAddress" placeholder="1234 Main St">
            </div>
            <div class="form-group">
              <label for="inputAddress2">Address 2</label>
              <input type="text" class="form-control" id="inputAddress2" placeholder="Apartment, studio, or floor">
            </div>
            <div class="form-row">
              <div class="form-group col-md-5">
                <label>Birthday</label>
                <select class="custom-select">
                  <option selected>Select Month</option>
                  <option value="1">January</option>
                  <option value="2">February</option>
                  <option value="3">March</option>
                </select>
              </div>
              <div class="form-group col-md-3 d-flex align-items-end">
                <select class="custom-select">
                  <option selected>Select Day</option>
                  <option value="1">1</option>
                  <option value="2">2</option>
                  <option value="3">3</option>
                </select>
              </div>
              <div class="form-group col-md-4 d-flex align-items-end">
                <select class="custom-select">
                  <option selected>Select Year</option>
                  <option value="1">2019</option>
                  <option value="2">2018</option>
                  <option value="3">2017</option>
                </select>
              </div>
            </div>
            <div class="form-group">
              <div class="custom-control custom-checkbox">
                <input type="checkbox" class="custom-control-input" id="customCheck1">
                <label class="custom-control-label" for="customCheck1">Agree with Terms of Use and Privacy Policy</label>
              </div>
            </div>
            <button type="submit" class="btn btn-primary">Submit Form</button>
          </form>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;form&gt;
  &lt;div class=&quot;form-row&quot;&gt;
    &lt;div class=&quot;form-group col-md-6&quot;&gt;
      &lt;label for=&quot;inputEmail4&quot;&gt;Email&lt;/label&gt;
      &lt;input type=&quot;email&quot; class=&quot;form-control&quot; id=&quot;inputEmail4&quot; placeholder=&quot;Email&quot;&gt;
    &lt;/div&gt;
    &lt;div class=&quot;form-group col-md-6&quot;&gt;
      &lt;label for=&quot;inputPassword4&quot;&gt;Password&lt;/label&gt;
      &lt;input type=&quot;password&quot; class=&quot;form-control&quot; id=&quot;inputPassword4&quot; placeholder=&quot;Password&quot;&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group&quot;&gt;
    &lt;label for=&quot;inputAddress&quot;&gt;Address&lt;/label&gt;
    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;inputAddress&quot; placeholder=&quot;1234 Main St&quot;&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group&quot;&gt;
    &lt;label for=&quot;inputAddress2&quot;&gt;Address 2&lt;/label&gt;
    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;inputAddress2&quot; placeholder=&quot;Apartment, studio, or floor&quot;&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-row&quot;&gt;
    &lt;div class=&quot;form-group col-md-5&quot;&gt;
      &lt;label&gt;Birthday&lt;/label&gt;
      &lt;select class=&quot;custom-select&quot;&gt;
        ...
      &lt;/select&gt;
    &lt;/div&gt;
    &lt;div class=&quot;form-group col-md-3 d-flex align-items-end&quot;&gt;
      &lt;select class=&quot;custom-select&quot;&gt;
        ...
      &lt;/select&gt;
    &lt;/div&gt;
    &lt;div class=&quot;form-group col-md-4 d-flex align-items-end&quot;&gt;
      &lt;select class=&quot;custom-select&quot;&gt;
        ...
      &lt;/select&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group&quot;&gt;
    &lt;div class=&quot;custom-control custom-checkbox&quot;&gt;
      &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot; id=&quot;customCheck1&quot;&gt;
      &lt;label class=&quot;custom-control-label&quot; for=&quot;customCheck1&quot;&gt;Agree with Terms of Use and Privacy Policy&lt;/label&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Submit Form&lt;/button&gt;
&lt;/form&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section4" class="mg-b-10">Horizontal Form</h4>
        <p class="mg-b-30">Create horizontal forms with the grid by adding the <code>.row</code> class to form groups and using the <code>.col</code> classes to specify the width of your labels and controls.</p>

        <div data-label="Example" class="td-example demo-forms">
          <form>
            <div class="form-group row">
              <label for="inputEmail3" class="col-sm-2 col-form-label">Email</label>
              <div class="col-sm-10">
                <input type="email" class="form-control" id="inputEmail3" placeholder="Email">
              </div>
            </div>
            <div class="form-group row">
              <label for="inputPassword3" class="col-sm-2 col-form-label">Password</label>
              <div class="col-sm-10">
                <input type="password" class="form-control" id="inputPassword3" placeholder="Password">
              </div>
            </div>
            <div class="form-group row">
              <label class="col-form-label col-sm-2 pt-0">Radios</label>
              <div class="col-sm-10">
                <div class="custom-control custom-radio">
                  <input type="radio" name="customRadio" class="custom-control-input" checked>
                  <label class="custom-control-label">First radio</label>
                </div>
                <div class="custom-control custom-radio">
                  <input type="radio" name="customRadio" class="custom-control-input">
                  <label class="custom-control-label">Second radio</label>
                </div>
                <div class="custom-control custom-radio">
                  <input type="radio" name="customRadio" class="custom-control-input" disabled>
                  <label class="custom-control-label">Third disabled radio</label>
                </div>
              </div>
            </div>
            <div class="form-group row">
              <div class="col-sm-2">Checkbox</div>
              <div class="col-sm-10">
                <div class="custom-control custom-checkbox">
                  <input type="checkbox" class="custom-control-input">
                  <label class="custom-control-label">Example checkbox</label>
                </div>
              </div>
            </div>
            <div class="form-group row mg-b-0">
              <div class="col-sm-10">
                <button type="submit" class="btn btn-primary">Submit Form</button>
              </div>
            </div>
          </form>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;form&gt;
  &lt;div class=&quot;form-group row&quot;&gt;
    &lt;label for=&quot;inputEmail3&quot; class=&quot;col-sm-2 col-form-label&quot;&gt;Email&lt;/label&gt;
    &lt;div class=&quot;col-sm-10&quot;&gt;
      &lt;input type=&quot;email&quot; class=&quot;form-control&quot; id=&quot;inputEmail3&quot; placeholder=&quot;Email&quot;&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group row&quot;&gt;
    &lt;label for=&quot;inputPassword3&quot; class=&quot;col-sm-2 col-form-label&quot;&gt;Password&lt;/label&gt;
    &lt;div class=&quot;col-sm-10&quot;&gt;
      &lt;input type=&quot;password&quot; class=&quot;form-control&quot; id=&quot;inputPassword3&quot; placeholder=&quot;Password&quot;&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group row&quot;&gt;
    &lt;label class=&quot;col-form-label col-sm-2 pt-0&quot;&gt;Radios&lt;/label&gt;
    &lt;div class=&quot;col-sm-10&quot;&gt;
      &lt;div class=&quot;custom-control custom-radio&quot;&gt;
        &lt;input type=&quot;radio&quot; name=&quot;customRadio&quot; class=&quot;custom-control-input&quot; checked&gt;
        &lt;label class=&quot;custom-control-label&quot;&gt;First radio&lt;/label&gt;
      &lt;/div&gt;
      &lt;div class=&quot;custom-control custom-radio&quot;&gt;
        &lt;input type=&quot;radio&quot; name=&quot;customRadio&quot; class=&quot;custom-control-input&quot;&gt;
        &lt;label class=&quot;custom-control-label&quot;&gt;Second radio&lt;/label&gt;
      &lt;/div&gt;
      &lt;div class=&quot;custom-control custom-radio&quot;&gt;
        &lt;input type=&quot;radio&quot; name=&quot;customRadio&quot; class=&quot;custom-control-input&quot; disabled&gt;
        &lt;label class=&quot;custom-control-label&quot;&gt;Third disabled radio&lt;/label&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group row&quot;&gt;
    &lt;div class=&quot;col-sm-2&quot;&gt;Checkbox&lt;/div&gt;
    &lt;div class=&quot;col-sm-10&quot;&gt;
      &lt;div class=&quot;custom-control custom-checkbox&quot;&gt;
        &lt;input type=&quot;checkbox&quot; class=&quot;custom-control-input&quot;&gt;
        &lt;label class=&quot;custom-control-label&quot;&gt;Example checkbox&lt;/label&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;form-group row mg-b-0&quot;&gt;
    &lt;div class=&quot;col-sm-10&quot;&gt;
      &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Submit Form&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/form&gt;</code></pre>

        <hr class="mg-t-50 mg-b-40">

        <h4 id="section5" class="mg-b-10">Form Alignment</h4>
        <p class="mg-b-30">Use flex utilities classes on form containers to change the alignment of forms on the main axis.</p>

        <div data-label="Example" class="td-example demo-forms">
          <div class="d-flex align-items-center justify-content-center pd-y-40 bg-ui-01">
            <form class="wd-250 wd-sm-300 bd bd-gray-300 rounded pd-30 bg-white">
              <div class="form-group">
                <input type="email" class="form-control" placeholder="Enter your email">
              </div>
              <div class="form-group">
                <input type="password" class="form-control" placeholder="Enter your password">
              </div>
              <button type="submit" class="btn btn-primary btn-block">Submit Form</button>
            </form>
          </div>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;div class=&quot;d-flex align-items-center justify-content-center pd-y-40 bg-gray-100&quot;&gt;
  &lt;form class=&quot;wd-300 bd bd-gray-300 rounded pd-30 bg-white&quot;&gt;
    &lt;div class=&quot;form-group&quot;&gt;
      &lt;input type=&quot;email&quot; class=&quot;form-control&quot; placeholder=&quot;Enter your email&quot;&gt;
    &lt;/div&gt;
    &lt;div class=&quot;form-group&quot;&gt;
      &lt;input type=&quot;password&quot; class=&quot;form-control&quot; placeholder=&quot;Enter your password&quot;&gt;
    &lt;/div&gt;
    &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary btn-block&quot;&gt;Submit Form&lt;/button&gt;
  &lt;/form&gt;
&lt;/div&gt;</code></pre>
 
@@include('./footer.html',{})

            </div>
          </div>
        </div><!-- component-content-body -->

        <div class="component-content-sidebar section-nav">
          <label class="tx-10 tx-medium tx-spacing-1 tx-color-03 tx-uppercase tx-sans mg-b-15">On This Page</label>
          <nav id="navSection" class="nav flex-column">
            <a href="#section1" class="nav-link">Form Group</a>
            <a href="#section2" class="nav-link">Fieldset</a>
            <a href="#section3" class="nav-link">Form Grid</a>
            <a href="#section4" class="nav-link">Horizontal Form</a>
            <a href="#section5" class="nav-link">Form Alignment</a>
          </nav>
        </div><!-- component-content-sidebar -->
      </div><!-- component-content -->

    </div><!-- component-wrapper -->


    @@include('./_script.html',{})
    <script>
      $(function(){
        'use strict'
 
       

      });
    </script>
  </body>
</html>
